package com.cowcode.biz.impl;

import com.cowcode.biz.CollectBiz;
import com.cowcode.dao.CollectDao;
import com.cowcode.entity.Collect;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * User: ljy
 * Date: 2021/7/4
 * Time: 18:02
 */
@Service
public class CollectBizImpl implements CollectBiz {
    @Resource
    private CollectDao collectDao;
    @Override
    public List<Collect> queryByUid(int uid) {
        return collectDao.queryByUid(uid);
    }

    @Override
    public boolean insertCollect(int uid, int qid) {
        return collectDao.insertCollect(uid,qid);
    }

    @Override
    public boolean deleteCollect(int uid, int qid) {
        return collectDao.deleteCollect(uid,qid);
    }

    @Override
    public boolean deleteByUid(int uid) {
        return collectDao.deleteByUid(uid);
    }
}
